package com.tjetc.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.tjetc.mapper.MedicineMapper;
import com.tjetc.domain.Medicine;
import com.tjetc.service.MedicineService;
@Service
public class MedicineServiceImpl implements MedicineService{

    @Resource
    private MedicineMapper medicineMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return medicineMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Medicine record) {
        return medicineMapper.insert(record);
    }

    @Override
    public int insertSelective(Medicine record) {
        return medicineMapper.insertSelective(record);
    }

    @Override
    public Medicine selectByPrimaryKey(Integer id) {
        return medicineMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Medicine record) {
        return medicineMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Medicine record) {
        return medicineMapper.updateByPrimaryKey(record);
    }

}
